package com.dingreading.cloud.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-03-15
 */
@Data
@Table(value = "wx_mini_user")
public class WxMiniUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    /**
     * unionid
     */
    private String unionid;

    /**
     * openid
     */
    private String openid;

    /**
     * 分享小程序的openid
     */
    private String shareOpenid;

    /**
     * 关联门店uid
     */
    private String storeUid;

    /**
     * 第一次关联门店uid
     */
    private String originStoreUid;

    /**
     * 渠道标识
     */
    private String channelUid;

    /**
     * 渠道名称
     */
    private String channelName;

    /**
     * 来源备注
     */
    private String remark;

    /**
     * 来源
     */
    private String source;

}
